import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: () => import('./views//index/Index.vue'),
      redirect:'/current',
      meta:{
        auth:true
      },
      children:[
        {
          path: 'current',
          name: 'Current',
          component: () => import('./views/index/Current.vue'),
          meta:{
            auth:true,
            index:0
          }
        },
        {
          path: 'prior',
          name: 'Prior',
          component: () => import('./views/index/Prior.vue'),
          meta:{
            auth:true,
            index:1
          }
        },
        {
          path: 'info',
          name: 'Info',
          component: () => import('./views/index/Info.vue'),
          meta:{
            auth:true,
            index:2
          }
        }
      ]
    },
  ]
})
